#include <boost/regex.hpp>
#include <iostream>
#include <string>

#include <boost/thread.hpp>

int main() {
    std::string line;

    boost::thread t([]() {
        for (int i = 0; i < 10; ++i) {
            printf("test %d\n", i + 1);
        }
    });

    t.join();
//    boost::regex pat("^Subject: (Re: |Aw: )*(.*)");

//    while (std::cin) {
//        std::getline(std::cin, line);
//        if (line == "exit" ||
//            line == "quit" ||
//            line == "q" ||
//            line == "Q")
//            break;
//        boost::smatch matches;
//        if (boost::regex_match(line, matches, pat))
//            std::cout << matches[2] << std::endl;
//    }
}